﻿using System;
using System.Web.Configuration;
using Core.Library;
using DataObject.Article;

public partial class Controls_Contact_Infomation : System.Web.UI.UserControl
{
    protected string ContentLeft = string.Empty;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            GetArticleStatic();
    }

    private void GetArticleStatic()
    {
        var articleId = ConvertUtility.ToInt32(WebConfigurationManager.AppSettings["ContactLeft"]);
        var o = ArticleController.Article_GetById(articleId);
        ContentLeft = o != null ? o.Body : "Nội dung đang cập nhật...";
    }
}